﻿using SUNRPA.CONTROLS.IMPL.domain.attrubutes;
using SUNRPA.CONTROLS.IMPL.domain.flowRunningVar;
using SUNRPA.CONTROLS.IMPL.util;
using System.Collections.Concurrent;
namespace SUNRPA.CONTROLS.IMPL.domain.flowItemParam {
    [Serializable]
    [VarFieldName("LineNumVar")]
    public class GetRowAvaliableColumnNParam:BaseParam {
        private string readObject = "{excelObject}";
        private string sheetName = "";
        private string rowNum = "";
        private string lineNumVar = "firstRowColumnNum";
        public string ReadObject {
            get => readObject; 
            set { 
                readObject = value;
                NotifyPropertyChanged("ReadObject");
            }  
        }
        public string RowNum {
            get => rowNum; 
            set { 
                rowNum = value;
                NotifyPropertyChanged("RowNum");
            }  
        }
        public string SheetName {
            get => sheetName; 
            set { 
                sheetName = value;
                NotifyPropertyChanged("SheetName");
            }  
        }
        public string LineNumVar {
            get => lineNumVar; 
            set { 
                lineNumVar = value;
                NotifyPropertyChanged("LineNumVar");
            }  
        }
        public override void SetLatestVarName(ConcurrentDictionary<string, ConcurrentDictionary<string, RPAVariableDefineWrapper>> globleData) {
            this.LineNumVar = this.GetLatestName(this.LineNumVar, globleData);
        }
    }
}
